package com.xtxk.service.notification;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.xtxk.common.constant.CommonConstant;

@Service
public class NotificatService {
	
	/**
	 * 媒体连接通知
	 * @return
	 */
	public Map<String, Object> medialinkevent(){
		Map<String, Object> map = new HashMap<>();
		if (CommonConstant.status) {
			map.put("serverIP", "192.16.1.85");
			map.put("serverPort", 5060);
			map.put("sipusername", "SIPDECODER000031");
			map.put("sippassword", "123456");
			return map;
		}
		return map;
	}

	
	/**
	 * 设备状态通知
	 * @return
	 */
	public Map<String, Object> deviceStatusEevent(){
		Map<String, Object> map = new HashMap<>();
		if (CommonConstant.status) {
			map.put("deviceID", "D000000000000032");
			map.put("ipAddress", "192.168.1.102");
			map.put("deviceType", 3);
			map.put("deviceName", "摄像机设备-XXX");
			map.put("status", 1);
			return map;
		}
		return map;
	}
}
